body {
    margin: 0ex 10ex 0ex 10ex;
    padding: 0ex;
    font-family: helvetica, tahoma, arial, verdana, sans-serif;
    font-size: 2ex;
    color: black;
    background-color:#333333;
    width: 100%;
    height: 100%;
}
h1 {
    margin: 1ex 0ex 1ex 0ex;
    padding: 0ex;

    line-height: 3ex;
    font-weight: 900;
    color: #666;
}
h2 {
    margin: 2ex 0ex 1ex 0ex;
    padding: 0ex;
    line-height: 2ex;
    font-weight: 700;
    color: #444;

}
h3 {
    margin: 1ex 0ex 1ex 0ex;
    padding: 0ex;
    line-height: 1.6ex;
    font-weight: 700;
    color: #222;
}
p {
    font-family:"Times New Roman";
    font-size:20px;
}
#Search input[type="text"]{
    width: 20ex;
    height: 3ex;
    font-size: 15px;
    border-radius: 5px;
    border:2px solid black; /* è®¾ç½® 2 åƒç´ å®½åº¦çš„é»‘è‰²è¾¹æ¡† */
}
.custom-input {
    width: 20ex;
    height: 3ex;
    font-size: 15px;
    border-radius:9px;
    border: 2px solid #D3D3D3;
    padding: 5px;

}

.custom-input:focus {
    outline: none;
    border-color: black;

}
.custom-input:focus::placeholder {
    color: transparent; /* è¾“å…¥æ¡†è¢«ç‚¹å‡»æ—¶éšè— placeholder æ–‡å­— */
}
.Button {
    display: inline-block;
    padding: 10px 20px;
    background-color:#005e21;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: medium;
    height: 40px;
    margin: 20px;
}

.Button:hover {
    background-color:#54c07a;
    border: none;
}
.Button2{
    display: inline-block;
    padding: 10px 20px;
    background-color:white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: medium;
    font-size: x-large;
    height: 50px;
    margin: 20px;
    color: #4CAF50;
    width:30%;
    margin-left: 70px;
}
.Button2:hover {
    background-color:#cccccc;
    border: none;
}
.custom-link {
    color: gray; /* åˆå§‹çŠ¶æ€ä¸‹çš„é¢œè‰²ä¸ºç°è‰² */
    text-decoration: none; /* åŽ»é™¤ä¸‹åˆ’çº¿ */
}

.custom-link:hover {
    color: green; /* é¼ æ ‡æ‚¬åœæ—¶çš„é¢œè‰²ä¸ºç»¿è‰² */
}

.top{
    top:0;
    height:10vh;
    background-color: #333333;
    color: #ffffff;
    width: 100%;
    padding: 10px;
}
.sidebar {
    position: fixed;
    top: 8vh;
    left: 0;
    height: 92vh;
    width: 15%;
    background-color: #333;
    color: white;
    padding-top: 0; /* åªè®¾ç½®ä¸Šä¾§å†…è¾¹è·ä¸º20px */
    padding-left: 0; /* å·¦ä¾§å†…è¾¹è·ä¸º0 */
    display: flex;
    flex-direction: column;
    font-size:large;
}

.option {
    cursor: pointer;
    height: 50px;
    transition: all 0.3s ease;
    display: flex; /* Ã¦Â·Â»Ã¥Å Â flexÃ¥Â¸Æ’Ã¥Â±â‚¬ */
    align-items: center; /* Ã¤Â½Â¿Ã©Â¡Â¹Ã§â€ºÂ®Ã¥Å“Â¨Ã¤ÂºÂ¤Ã¥Ââ€°Ã¨Â½Â´Ã¤Â¸Å Ã¥Â±â€¦Ã¤Â¸Â­Ã¥Â¯Â¹Ã©Â½Â */
    justify-content:left; /* Ã¤Â½Â¿Ã©Â¡Â¹Ã§â€ºÂ®Ã¥Å“Â¨Ã¤Â¸Â»Ã¨Â½Â´Ã¤Â¸Å Ã¥Â±â€¦Ã¤Â¸Â­Ã¥Â¯Â¹Ã©Â½Â */
    text-align: left;
    width: 100%; /* Ã¤Â¿ÂÃ§â€¢â„¢Ã¥Â®Â½Ã¥ÂºÂ¦Ã¨Â®Â¾Ã§Â½Â® */;
    color: white;
    padding-left:50px;
    text-decoration: none;

}
.option:hover {
    color: white;
    background-color: #005e21;
    font-size: large;
    text-decoration: none;
}
.option.active {
    color: white;
    background-color: #005e21;
    border-radius: 0;
    font-size: x-large;
    text-decoration: none;
}
.commodity{
    display: none;
    background-color: #4bb97e;
}
.bi{
    margin-left:50%;
    text-decoration: none;
}



.content{
    position: fixed;
    top: 8vh;
    right: 0;
    height: 92vh;
    width: 85%;
    color: white;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) minmax(200px, auto) minmax(200px, auto); /* å°†å†…å®¹åˆ†ä¸ºå››åˆ—ç­‰å®½ï¼Œæœ€åŽä¸¤åˆ—å®½åº¦è¾ƒå° */ /* å°†å†…å®¹åˆ†ä¸ºä¸‰åˆ—ï¼Œæ¯åˆ—ç­‰åˆ† */
    grid-template-rows: minmax(100px,auto) minmax(100px,auto) repeat(7, 1fr) ;
    grid-gap: 10px;
    background-color:#222222;
    justify-items: center;
    overflow: auto;
}
.content > div, .content .btn-group, .content .Button {
    display: flex;
    align-items: center;
    justify-content: center;
}
#signOut{
    margin-left:77%;
    color:white;
    font-size:large;
}

#LogoContent {
    left: 0;
    float: left;
}

.custom-link {
    margin-left: auto;
    padding: 10px;
    float: right;
}
.revenue{
    grid-column: span 1;
    grid-row: span 1;
    background-color:#29FD9A;
    border: none;
    border-radius: 15px;
    padding: 20px;
    display: block;
}
.Productlist{
    grid-column: span 2;
    grid-row: span 9;
    background-color: #333333;
    margin-bottom: 30px;
    border-radius: 15px;
    width:95%;
    height: 102%;
}
.Productlist table{
    height:100%;
    margin-top: 5%;
    width: 100%;
    margin-left:20px;
    font-size:large;
}
.Productlist thead {
    font-size: 40px; /* 设置字体大小为20像素 */
    display: block; /* 将thead元素转换为块级元素 */
    width: 100%; /* 设置宽度为100% */
    margin-bottom: 5px; /* 设置与下一行的间距为10像素 */
    color: #54c07a;
}

.Productlist thead td {
    text-align: center; /* 水平居中对齐 */
    colspan: 2; /* 占据两列的位置 */
}
.chart{
    grid-column: span 4;
    grid-row: span 9;
    margin-top: 30px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #333;
    width:100%;
    height: 97%;
}
#myChart{
    position:relative;
    /*margin-top: 10px;*/
    width: 90%;
margin: 20px;

}
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #222222;
    border-radius:10px;
    grid-column: span 4;
    grid-row: span 1;
}

li {
    float: left;
    border-radius:10px;
}

li:last-child {
    border: none;
    border-radius:10px;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 80px;
    text-decoration: none;
    border-radius:10px;
    flex: 1;
}

li a:hover:not(.active) {
    background-color: #111;
    border-radius:10px;
}

.active {
    background-color: #4CAF50;
    border-radius:10px;
}
.Search{
    height: fit-content;
    border-radius: 10px;
    grid-column: span 2;
    grid-row: span 1;
    background-color: white;
    align-items: center;
}
.tab-bg{
    grid-column: span 6;
    grid-row:span 8;
    background-color:#333333;
    height:100%;
    width:100%;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    overflow: auto;
}
.order_tab{
    background-color: #333333;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: white;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:13.3%;
    width:97.5%;
}
.order_tab td {
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
    font-size: large;
    word-wrap:break-word;
}
.order_tab th:nth-child(3){
    width:13%;
}
.order_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.order_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}

.order_tab th:first-child{
    border-top-left-radius:10px;
}
.order_tab th:last-child{
    border-top-right-radius:10px;
    width: 25%; /* 设置最后一列的宽度为150像素，根据需要进行调整 */
}
.order_tab td:last-child {
    width: 26%; /* 设置最后一列的宽度为150像素，根据需要进行调整 */
}
.order_tab button{
   text-align: center;
}
.longButton{
    width:76%;
    text-align:center;
    margin-left:13%;
}
.select{
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    color: white;
    text-shadow: none;
    border-radius: 10px;
    transition: box-shadow 0.25s ease;
    z-index: 2;
    height:40px;
    width:150px;
    grid-column: span 1;
    align-items: center;
    margin-top: 10px;
}

.select:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.select:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    top: 14px;
    right: 10px;
    cursor: pointer;
    z-index: -2;
}
.select select {
    cursor: pointer;
    padding-left: 15px;
    padding-top:4px;
    width: 100%;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    height:90%;
    font-size:large;
    color:black;
}
.select option{
    line-height:40px;
    background-color:#333;
}
.select select:focus {
    outline: none;
}
.searchgrp{
    grid-column: span 2;
}
.searchinput{
    width: 200px;
    height: 40px;
    padding-left: 10px;
    /*border: 2px solid #7BA7AB;*/
    border-radius: 10px;
    outline: none;
    background: white;
    color: #9E9C9C;
    margin-bottom:40px;

}
.searchbtn{
    /*position: absolute;*/
    /*top: 0;*/
    /*right: 0px;*/
    /*width: 42px;*/
    /*height: 42px;*/
    /*border: none;*/
    /*background: #7BA7AB;*/
    /*border-radius: 0 5px 5px 0;*/
    /*cursor: pointer;*/
    grid-column: span 1;
    height:40px;
    margin-bottom:40px;
    background-color: #222222;
    color: white;
    margin-left: 20px;

}
.btn-group{
    grid-column: span 1;
    grid-row: span 1;
    height:40px;
    margin-top:10px;
}
.item_tab{
    background-color: #333333;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-bottom: 2px solid #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:13.3%;
    width:97.5%;
    overflow: auto;
}
.item_tab td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
    font-size:large;
}
.item_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.item_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
.item_tab th:first-child{
    border-top-left-radius:10px;
}
.item_tab th:last-child{
    border-top-right-radius:10px;
    width:370px;
}
.item_tab input{
    border-radius:10px;
    color:white;
    background-color:#333333;
    height:40px;
    width:100%;
    font-size:larger;
    border: none;
    text-align:center;
}
.item_tab p{
    font-size:larger;
    text-align:center;
    margin-top:10%;
}
.item_tab textarea{
    background-color:transparent;
    border:none;
    width:110%;
    height:100px;
    font-size:x-large;
    overflow:hidden;
    resize:none;
    line-height:1.2;
    margin-top:24%;
    outline:none;
}

.Administrators_tab{
    background-color: #333333;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:12%;
    width:97.5%;
}
.Administrators_tab td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
    font-size: large;
    word-wrap:break-word;
}
.Administrators_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.Administrators_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
.Administrators_tab th:first-child{
    border-top-left-radius:10px;
}
.Administrators_tab th:last-child{
    border-top-right-radius:10px;
    width:15%;
}

.Administrators_tab tr{
    line-height: 2em;
}
.image-upload-container {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed #999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}
.image-upload-container input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.image-upload-container label {
    position: absolute;
    font-size: 50px;
    color: #999;
    z-index: 1;
    display: none;
}
.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.round-image{
    border-radius: 50%; /* å°†å›¾ç‰‡æ˜¾ç¤ºä¸ºåœ†å½¢ */
    transform:scale(1);
    width:150px;
    height:150px;
    margin-right:5%;
    overflow:hidden;
    object-fit:cover

}
.image-upload-container1 {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0px dashed #999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}
.image-upload-container1 input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.AddTab{
   font-size: xx-large;
    text-align: center;
    grid-column: span 4;
    grid-row: span 8;
}
.AddTab th,
td {
    padding: 20px 40px;
    border-top-width: 0;
    border-left-width: 0;
}
form table {
    border-collapse: separate; /* 避免边框重叠 */
    border-spacing: 0 40px; /* 设置行间距为10像素，列间距为0 */
    overflow: auto;
}
.item-input{
    border-radius: 10px;
    color: #222222;
}
.addItem-select{
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    background-color:white;
    color: white;
    text-shadow: none;
    border-radius: 10px;
    transition: box-shadow 0.25s ease;
    z-index: 2;
    height:40px;
    width:150px;
    grid-column: span 1;
    align-items: center;
    margin-top: 10px;
}
.addItem-select:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.addItem-select:before {
    content: "";
    position: absolute;
    width:0;
    height:0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    top: 27px;
    right: 15px;
    cursor: pointer;
    z-index: -2;
}
.addItem-select select {
    cursor: pointer;
    padding-left: 15px;
    padding-top:4px;
    width: 100%;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    height:90%;
    font-size:x-large;
    color:black;
}
.addItem-select option{
    line-height:60px;
    background-color:white;
}
.addItem-select select:focus {
    outline: none;
}
.msgList{
    background-color: #9bcd9b;
    border-radius: 10px;
    grid-row: span 9;
    grid-column: span 2;
    width:480px;
}
#msgTab{
    background-color: #9bcd9b;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-bottom: 2px solid #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout:fixed;
    position:absolute;
    top:2%;
    width:480px;
    overflow: auto;
}
#msgTab td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    font-size:x-large;
    line-height: 1.5em;
}
#msgTab tr{
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
    color:black;
}
#msgTab tr:hover{
    background-color:green;

}
.highlight {
    background-color: green; /* 设置高亮样式 */
}
.chat{
    width:100%;
    height:100%;
}
.chat-container {
    width:100%;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
   display: none;
}

.chat-display {
    margin-top:80px;
    padding: 10px;
    background-color: 	#4F4F4F;
    height: 490px;
    width:1000px;
    overflow-y: scroll;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    display: block;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: 	#333333;
    height:300px;
}
.chat-display li{
    width:80%;
    font-size:large;
}
.chat-input input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    height:200px;
    border-radius: 5px;
    color: white;
    font-size:xx-large;
    background-color:#4F4F4F;
}

.chat-input button {
    padding: 5px 10px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.chat-display::-webkit-scrollbar {
    width: 10px; /* 设置滚动条宽度 */
}

.chat-display::-webkit-scrollbar-track {
    background-color: #333; /* 设置滚动条背景色 */
}

.chat-display::-webkit-scrollbar-thumb {
    background-color: black; /* 设置滚动条滑块颜色 */
}
input.itemid{
    background-color: #4F4F4F;
}
.order-check{
    grid-row: span 1;
    grid-column: span 4;
    vertical-align:middle;
    display: inline-block;
    margin-right:400px;
}
.order-checkInput{
    vertical-align:middle;
    display: inline-block;

}
.order-checkLabel{
    display: inline-block
}
.order-check div{
    margin:20px;
}
.modal {
    grid-row: span 4;
    grid-column: span 2;
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* 弹窗内容 */
.modal-content {
    position: relative;
    background-color: #444444;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    margin-top:15%;
    margin-left:45%;
    width: 20%;
    height: 20%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    color: darkseagreen;
}
.modal-content label{
    color:black;
    display:inline-block;
    font-size:large;
    margin-left:45px;
    margin-top:10px;
    width: 90px;
}
.modal-content input{
    width: 150px;
    height:40px;
    margin-left:20px;
    border-radius:10px;
    border-color: #D3D3D3;
    color:black;
    display:inline-block;
}
.modal-content button{
    width:70%;
    height:60%;
    border-radius:10px;
    display: inline-block;
}
.pw-row{
    display: flex;
    height:40%;
    margin-top:0px;
}
.button-grp{
    width: 100%;
    height: 70px;;
    display: flex;
}
#reset-username{
    height:20px;
}
.modal1 {
    grid-row: span 4;
    grid-column: span 2;
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
/* 弹窗内容 */
.modal-content-order {
    position: relative;
    background-color: #444444;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 50%;
    height: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    color: darkseagreen;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
#modalTab-bg{
    grid-row: span 1;
    background-color: #444444;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    color: #222222;
    height: 90%;

}
#button-return{
    margin-top:68%;
    width:300px;
}
#button-return button{
    align-self: center;
    width: 90px;
}
#order-details{
    background-color: #4bb97e;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    color: #222222;
}
#order-details td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
}
#order-details thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
#order-details th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
#order-details th:first-child{
    border-top-left-radius:10px;
}
#order-details th:last-child{
    border-top-right-radius:10px;
}
#myModal2 button{
    margin-top:30px;

}
.ic-row{
    margin-top:30px;
}
.errorMsg